package com.hst.web.base.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.hst.core.annotation.Comment;
import com.hst.core.annotation.HSID;
import com.hst.core.dao.BaseEntity;

@Entity
@Table(name = "t_trans_card")
@Comment("卡交易记录表")
@HSID(length = 10, prefix = "R", resetByDay = true)
public class TTransCard extends BaseEntity {

	@Id
	@Column(name = "id")
	@Comment("id")
	@GeneratedValue(generator = "hsid")
	@GenericGenerator(name = "hsid", strategy = "com.hst.core.hbm.HSIDGenerator")
	private String id;

	@Column(name = "trans_type", length = 2, nullable = false)
	@Comment("交易类型")
	private String transType;

	@Column(name = "operator_nbr", length = 16)
	@Comment("操作员号")
	private String operatorNbr;

	@Column(name = "trans_time", nullable = false)
	@Comment("交易时间")
	private Timestamp transTime;

	@Column(name = "issue_no", length = 20, nullable = false)
	@Comment("卡发行号")
	private String issueNo;

	@Column(name = "papers_number", length = 32)
	@Comment("人员证件号")
	private String papersNumber;

	@Column(name = "papers_type", length = 2)
	@Comment("证件类型")
	private String papersType;

	@Column(name = "employee_code", length = 16)
	@Comment("员工编号")
	private String employeeCode;

	@Column(name = "plate_no", length = 16)
	@Comment("车牌号")
	private String plateNo;

	@Column(name = "vehicle_code", length = 16)
	@Comment("车辆编号")
	private String vehicleCode;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getTransType() {
		return transType;
	}

	public void setTransType(String transType) {
		this.transType = transType;
	}

	public String getOperatorNbr() {
		return operatorNbr;
	}

	public void setOperatorNbr(String operatorNbr) {
		this.operatorNbr = operatorNbr;
	}

	public Timestamp getTransTime() {
		return transTime;
	}

	public void setTransTime(Timestamp transTime) {
		this.transTime = transTime;
	}

	public String getIssueNo() {
		return issueNo;
	}

	public void setIssueNo(String issueNo) {
		this.issueNo = issueNo;
	}

	public String getPapersNumber() {
		return papersNumber;
	}

	public void setPapersNumber(String papersNumber) {
		this.papersNumber = papersNumber;
	}

	public String getPapersType() {
		return papersType;
	}

	public void setPapersType(String papersType) {
		this.papersType = papersType;
	}

	public String getEmployeeCode() {
		return employeeCode;
	}

	public void setEmployeeCode(String employeeCode) {
		this.employeeCode = employeeCode;
	}

	public String getPlateNo() {
		return plateNo;
	}

	public void setPlateNo(String plateNo) {
		this.plateNo = plateNo;
	}

	public String getVehicleCode() {
		return vehicleCode;
	}

	public void setVehicleCode(String vehicleCode) {
		this.vehicleCode = vehicleCode;
	}

}
